<?php

namespace Gds\VenteBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class LigneBonLivraisonClientType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('quantite_blanc')
            ->add('quantite_noir')
            ->add('prix_unitaire_ht')
            ->add('prix_achat_ttc')
            ->add('taux_remise')
            ->add('taux_tva')
            ->add('bon_livraison')
        ;
     
    }

    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(array(
            'data_class' => 'Gds\VenteBundle\Entity\LigneBonLivraisonClient'
        ));
    }

    public function getName()
    {
        return 'gds_ventebundle_lignebonlivraisonclienttype';
    }
}
